package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @UserQuestionnaire
 * @用户问卷(user_questionnaire)
 * @version : Ver 1.0
 */
@TableName("user_questionnaire")
public class UserQuestionnaire implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:用户问卷表
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private java.lang.Long id;


	/**
	 * @备注:用户id
	 * @字段:muser_id BIGINT(19)
	 */
	private java.lang.Long muserId;
	/**
	 * 备注:用户id
	 */
	@TableField(exist = false)
	private Muser muser;


	/**
	 * @备注:问卷id
	 * @字段:questionnaire_id BIGINT(19)
	 */
	private java.lang.Long questionnaireId;
	/**
	 * 备注:问卷id
	 */
	@TableField(exist = false)
	private Questionnaire questionnaire;


	/**
	 * @备注:1 待填 2 已填 3 过期
	 * @字段:status INT(10)
	 */
	private java.lang.Integer status;


	/**
	 * @备注:到期时间
	 * @字段:expire_time DATETIME(19)
	 */
	private java.util.Date expireTime;


	/**
	 * @备注:创建时间
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime;


	public UserQuestionnaire(){
	}

	public UserQuestionnaire(
		java.lang.Long id
	){
		this.id = id;
	}



	public void setId(java.lang.Long id) {
		this.id = id;
	}

	public java.lang.Long getId() {
		return this.id;
	}

	public void setMuserId(java.lang.Long muserId) {
			this.muserId = muserId;
			}

	public java.lang.Long getMuserId() {
			return this.muserId;
	}
	public void setMuser(Muser muser) {
		this.muser = muser;
	}

	public Muser getMuser() {
		return this.muser;
	}

	public void setQuestionnaireId(java.lang.Long questionnaireId) {
			this.questionnaireId = questionnaireId;
			}

	public java.lang.Long getQuestionnaireId() {
			return this.questionnaireId;
	}
	public void setQuestionnaire(Questionnaire questionnaire) {
		this.questionnaire = questionnaire;
	}

	public Questionnaire getQuestionnaire() {
		return this.questionnaire;
	}


	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}

	public java.lang.Integer getStatus() {
		return this.status;
	}


	public void setExpireTime(java.util.Date expireTime) {
		this.expireTime = expireTime;
	}

	public java.util.Date getExpireTime() {
		return this.expireTime;
	}


	public void setGmtDatetime(java.util.Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public java.util.Date getGmtDatetime() {
		return this.gmtDatetime;
	}
}
